<style>
.mix {padding:0px 5px;}
</style>
		<div class="ui-portlet">
			<ol class="breadcrumb">
			  <li><a href="/users/index"><i class="fa fa-home"></i>&nbsp;&nbsp;个人中心</a></li>
			  <li class="active">我的数据表单</li>
			</ol>
		</div>
       <hr>
       <div class="mb10">
       	<a class="btn btn-primary" href="{{$this->Html->url(array('action'=>'add'))}}">新增数据表单</a>
       	
       </div>
       <br/>
       <div class="alert alert-warning">
		提示：
		<p style="text-indent:2em;">点击下面列表中表单的标题与封面可以直接进入表单项设计。</p>
		</div>  
       <div class="ui-portlet">
	       <div class="row clearfix ui-portlet-list" id="storefront-list">
	       {{loop $datalist $item}}
	       	<div class="col-md-4 mix">
	       		<div class="appmsg">
		       		<div class="appmsg_content">
			       		<h4><a href="{{$this->Html->url('/questionnaires/editform/'.$item['Questionnaire']['id'])}}" target="_blank">{{$item['Questionnaire']['name']}}</a></h4>
			       		{{if $item['Questionnaire']['coverimg']}}
			       		<div class="cover"><a href="{{$this->Html->url('/questionnaires/editform/'.$item['Questionnaire']['id'])}}" target="_blank">{{$this->Html->image($item['Questionnaire']['coverimg'])}}</a></div>
			       		{{/if}}
			       		<p>{{$item['Questionnaire']['created']}}</p>
		       			<p>
		       				<a target="_blank" href="/questionnaires/editform/{{$item['Questionnaire']['id']}}"><i class="fa fa-check-square-o"></i> 设计表单项</a>
		       				<br/><a target="_blank" href="/questionnaires/form/{{$item['Questionnaire']['creator']}}/{{$item['Questionnaire']['id']}}"><i class="fa fa-eye"></i> 查看表单提交页面</a>&nbsp;
		       				<br/><a  target="_blank" href="/questionnaires/form_datas/{{$item['Questionnaire']['id']}}"><i class="fa fa-hdd-o"></i> 查看表单数据</a>
		       			</p>
		       		</div>
		       		<div class="appmsg_opr clearfix">
		       			{{$this->Html->link('<i data-toggle="tooltip" data-placement="top" title="编辑表单名称、封面及描述" class="fa fa-edit"></i>', array('controller'=>'questionnaires','action' => 'edit', $item['Questionnaire']['id']),array('class'=>'col-xs-6 opr-edit','escape'=>false))}}
		       			
		       			
		       			<a href="javascript:void(0)" data-url="{{$this->Html->url('/questionnaires/delete/'.$item['Questionnaire']['id'])}}" class="col-xs-6 delete-pop" data-placement="bottom" data-content="确定删除此素材？"><i data-toggle="tooltip" data-placement="top" 
		       			 title="{{__('Delete')}}" class="fa fa-trash"></i></a>
		       			 
		       			 <!-- {{$this->Html->link('', array('controller'=>'wx_msgs','action' => 'delete', $item['Questionnaire']['id']),array('class'=>'col-xs-6','escape'=>false))}}
		       			  -->
		       		</div>
	       		</div>
	       	</div>
	  		{{/loop}}
	    	</div>
	    	<div>{{$page_navi}}</div>
    	</div>